package net.jforum.entities;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: stzhang
 * Date: 2010-2-10
 * Time: 15:55:44
 * To change this template use File | Settings | File Templates.
 */
public class SubForum implements Serializable{
    private int id;
	private int idCategories;
	private String name;
	private String description;
    private int order;
	private int totalTopics;
	private int totalPosts;
	private int lastPostId;
    private int forumId;
	private boolean moderated;
	private boolean unread;
	private LastPostInfo lpi;

    public  SubForum(){}
    public  SubForum(SubForum sf){
        this.description = sf.getDescription();
		this.id = sf.getId();
		this.idCategories = sf.getCategoryId();
		this.lastPostId = sf.getLastPostId();
		this.moderated = sf.isModerated();
		this.name = sf.getName();
		this.order = sf.getOrder();
		this.totalPosts = sf.getTotalPosts();
		this.totalTopics = sf.getTotalTopics();
		this.unread = sf.getUnread();
		this.lpi = sf.getLastPostInfo();
        this.forumId = sf.getForumId();

    }
    public int getForumId() {
          return forumId;
      }

      public void setForumId(int forumId) {
          this.forumId = forumId;
      }
    
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCategoryId() {
        return idCategories;
    }

    public void setCategoryId(int idCategories) {
        this.idCategories = idCategories;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public int getTotalTopics() {
        return totalTopics;
    }

    public void setTotalTopics(int totalTopics) {
        this.totalTopics = totalTopics;
    }

    public int getTotalPosts() {
        return totalPosts;
    }

    public void setTotalPosts(int totalPosts) {
        this.totalPosts = totalPosts;
    }

    public int getLastPostId() {
        return lastPostId;
    }

    public void setLastPostId(int lastPostId) {
        this.lastPostId = lastPostId;
    }

    public boolean isModerated() {
        return moderated;
    }

    public void setModerated(boolean moderated) {
        this.moderated = moderated;
    }

    public boolean getUnread() {
        return unread;
    }

    public void setUnread(boolean unread) {
        this.unread = unread;
    }

    public LastPostInfo getLastPostInfo() {
        return lpi;
    }

    public void setLastPostInfo(LastPostInfo lpi) {
        this.lpi = lpi;
    }



    
}
